﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Globalization;

namespace IntelliLance.Math.Parser
{
    /// <summary>
    /// A set of FunctionDefinition objects and an associated string parameter.
    /// </summary>
    public class FunctionsDictionary : Dictionary<string, FunctionDefinition>
    {

        internal FunctionsDictionary(StringComparer comparer) : base(comparer) { }

        public virtual void Add(string identifier, MethodInfo method)
        {
            base.Add(identifier, new FunctionDefinition(identifier, method, (StringComparer)this.Comparer));
        }

        
    }
}
